package com.naive.imperative.program;

import java.util.Iterator;
import java.util.List;

import com.naive.imperative.view.OperationRenderer;

/**
 * Operations properties can change like argument operations, name (as result of
 * refactoring say) in such a case, a new operation drawable is created on basis
 * of the changed operation then argument drawables and block collections are
 * reassigned to the new one. and new one is inserted into parent drawable
 * replacing old one.
 * 
 * @author gbu.000
 * 
 */
public class ChangeEvent {
	private final Operation parent;
	private final Operation operation;

	public ChangeEvent(Operation parent, Operation operation) {
		this.parent = parent;
		this.operation = operation;
	}

	public Operation getOperation() {
		return operation;
	}

	public Operation getParent() {
		return parent;
	}
}
